package io.renren.core.dao;

import io.renren.common.dao.BaseDao;
import io.renren.core.entity.LearnNewsEntity;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 新闻资讯
 *
 * @author Ark 6980gong@gmail.com
 * @since 1.0.0 2024-04-29
 */
@Mapper
public interface LearnNewsDao extends BaseDao<LearnNewsEntity> {
	@Select("select * from learn_news order by news_date desc limit #{limit}")
	List<LearnNewsEntity> listNewsLimit(@Param("limit") Integer limit);
}